$(document).ready(function (){
    $('input#search-submit').on('click', function(){
        var srch = $('input#srch').val();
        if($.trim(srch) != ''){
            $.post('php_solr_tester.php',{srch: srch}, function(data){
                if(data == ''){
                    $('div#livesearch').text("Sorry, No results found!");
                }
                else{
                    $('div#livesearch').html(data);};
            });
        }
    });
});
